package com.example.project_demo.service;

import com.example.project_demo.dao.EmpMapper;
import com.example.project_demo.pojo.Emp;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 韦红材
 * @ClassName EmpServiceImp
 * @data 2024/12/23 09:43
 * @Version V1.0
 **/
@Service
public class EmpServiceImp implements EmpService{
    @Autowired
    private EmpMapper empMapper;
    @Override
    public int addEmpSal(int deptno, double money) {
        int update = empMapper.updateEmpMoney(deptno, money);
        return update;
    }

    @Override
    public void add(Emp emp) {
        empMapper.addEmp(emp);
    }
}
